Skip to main content

OptionsPattern

OptionsPattern[] is a pattern object that represents a collection of options given as rules, where the values of the options can be accessed using OptionValue.

OptionsPattern[f] takes default option values from Options[f].

OptionsPattern[{opt1->val1,opt2->val2,…}] uses an explicit list of default option values.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.